load("@rules_cc//cc:cc_library.bzl", "cc_library")

cc_library(
    name = "boost.regex",
    hdrs = glob(
        [
            "include/**/*.hpp",
            "include/**/*.h",
        ],
        exclude = glob([
            "include/boost/regex/v4/*.hpp",
            "include/boost/regex/v5/*.hpp",
        ]) + [
            "include/boost/regex/icu.hpp",
            "include/boost/regex/mfc.hpp",
        ],
    ),
    features = [
        "parse_headers",
    ],
    includes = ["include"],
    textual_hdrs = glob([
        "include/boost/regex/v4/*.hpp",
        "include/boost/regex/v5/*.hpp",
    ]) + [
        "include/boost/regex/icu.hpp",
        "include/boost/regex/mfc.hpp",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "@boost.assert",
        "@boost.concept_check",
        "@boost.config",
        "@boost.container_hash",
        "@boost.core",
        "@boost.integer",
        "@boost.mpl",
        "@boost.predef",
        "@boost.smart_ptr",
        "@boost.static_assert",
        "@boost.throw_exception",
        "@boost.type_traits",
    ],
)
